<?php
include_once 'Zend/Db/Table.php';

Zend_Db_Table::setDefaultAdapter($db);

class Merchant extends Zend_Db_Table 
{
	protected $_name = 'partners_merchant';
	
	/**
	 * add new user
	 *
	 * @param array
	 * @return boolean
	 */
	public function add($newMerchant)
	{
		try 
		{
			if ($this->insert($newMerchant))
			{
				return true;
			}
		}catch (Exception $e)
		{
			return false;
		}
	}
	public function addLogin($newLogin)
	{
		$this->_name = 'partners_login';
		try 
		{
			if ($this->insert($newLogin))
			{
				return true;
			}
		}catch (Exception $e)
		{
			return false;
		}
	}
}
?>